package com.chaoyong.higo.fragment;

import java.util.Arrays;
import java.util.List;

import com.chaoyong.higo.R;
import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader.Array;

import android.media.MediaCodecList;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

public class FragSlidingMenuLeft extends Fragment {

	private View mView;
	private ListView mListView;
	private List<String> mList = Arrays.asList("数码影音", "电脑办公", "智能软件", "时尚家居", "食品饮料", "新手专区", "任性专区", "其他商品");
	private ListAdapter mListAdapter;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		if (mView == null) {
			intiView(inflater, container);
		}
		return mView;
	}

	private void intiView(LayoutInflater inflater, ViewGroup container) {
		mView = inflater.inflate(R.layout.item_slidingmenu_left, container, false);
		mListAdapter = new ArrayAdapter<>(getActivity(), android.R.layout.simple_list_item_1, mList);
		mListView.setAdapter(mListAdapter);
	}
}
